package com.atomic.test.example.common;

/**
 * Created by DreamYao on 2017/1/24.
 */
public class ErrorCode {

    /**
     * 错误
     */
    public static final Integer STATUS_ERROR = -1;
    /**
     * 失败
     */
    public static final Integer STATUS_FAILURE = 0;
    /**
     * 正常
     */
    public static final Integer STATUS_SUCCESS = 1;
    /**
     * 用户名为空
     */
    public static final Integer USER_USERNAME_EMPTY = 4001;
    /**
     * 用户密码为空
     */
    public static final Integer USER_USERPWD_EMPTY = 4002;
    /**
     * 用户密码位数不对
     */
    public static final Integer USER_USERPWD_LENGTH_ERR = 4003;
    /**
     * 登陆失败
     */
    public static final Integer USER_USERLOGIN_ERROR = 4004;
    /**
     * 登陆成功
     */
    public static final Integer USER_USERLOGIN_SUCCESS = 4005;
    /**
     * 参数错误
     */
    public static final Integer PARAMETER_ERROR = 5001;

    /**
     * 没有用户,没有登录
     */
    public static final Integer NO_PERMISSION = -2;
}
